package com.zixi.ai.plugin.entity.groupkey;

import lombok.Data;

import java.util.Objects;

/**
 * @author wfg
 */
@Data
public class AiPluginCategoryKey {
    private Long pluginId;
    private Integer categoryId;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        AiPluginCategoryKey that = (AiPluginCategoryKey) o;
        return Objects.equals(pluginId, that.pluginId) && Objects.equals(categoryId, that.categoryId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(pluginId, categoryId);
    }
}
